<!DOCTYPE html>
<html>
    <head>
        <title>职统</title>
        <link rel="stylesheet" href="/styles/common.css"/>
        <style type="text/css">
            
        </style>
    </head>
    <body>
        <#include "top.ftl">
        <div class="page-body">
            <#include "leftmenu.ftl">
            <div class="page-content">
                <div class="content-nav">
                    会议预定 > 会议审批
                </div>
                <table class="listtable">
                    <caption>所有待审批会议信息：</caption>
                    <tr class="listheader">
                        <th>会议名</th>
                        <th>会议室</th>
                        <th>会议开始时间</th>
                        <th>会议结束时间</th>
                        <th>发起人</th>
                        <th>会议描述</th>
                        <th>操作</th>
                    </tr>
                    <#if passmts ??>
                        <#list passmts as pmt>
                            <tr>
                                <td>${pmt.meetingname}</td>
                                <td>${pmt.roomname}</td>
                                <td>${(pmt.starttime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(pmt.endtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${pmt.employeename}</td>
                                <td>${pmt.description}</td>
                                <td>
                                    <a type="button" class="clickbutton" href="/admin/updatemetstatus?meetingid=${pmt.meetingid}&status=1">通过</a>
                                    <a type="button" class="clickbutton" href="/admin/updatemetstatus?meetingid=${pmt.meetingid}&status=0">不通过</a>
                                </td>
                            </tr>
                        </#list>
                    </#if>

                </table>
                <table class="listtable">
                    <caption>所有待审批取消会议信息：</caption>
                    <tr class="listheader">
                        <th>会议名称</th>
                        <th>会议室</th>
                        <th>会议开始时间</th>
                        <th>会议结束时间</th>
                        <th>发起人</th>
                        <th>取消原因</th>
                        <th>操作</th>
                    </tr>
                    <#if cancelmts ??>
                        <#list cancelmts as cts>
                            <tr>
                                <td>${cts.meetingname}</td>
                                <td>${cts.roomname}</td>
                                <td>${(cts.starttime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(cts.endtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${cts.employeename}</td>
                                <td>${cts.description}</td>
                                <td>
                                    <a type="button" class="clickbutton" href="/admin/updatemetstatus?meetingid=${cts.meetingid}&status=0">批准</a>
                                    <a type="button" class="clickbutton" href="/admin/updatemetstatus?meetingid=${cts.meetingid}&status=1">驳回</a>
                                </td>
                            </tr>
                        </#list>
                    </#if>
                </table>
                <#if result??><span style="color: red">${(result==0)?string('操作失败','操作成功')}</span></#if>
            </div>
        </div>
        <div class="page-footer">
            <hr/>
            欢迎使用
        </div>
    </body>
</html>